package net.pinnoocle.playcommon.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author ye
 * @Description
 * @create 2021-09-23 20:58
 */

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum UserTypeEnums {


    USER(0, "用户"),
    MASTER(1,"主持人"),
    SHOP(2, "店主");
    private Integer status;

    private String desc;

    public static String getDesc(Integer status) {
        for (UserTypeEnums ele : values()) {
            if (ele.getStatus().equals(status)) return ele.getDesc();
        }
        return null;
    }
}
